From ae06bb12e35dd96183748529f2037e8344a5af68 Mon Sep 17 00:00:00 2001 From: tsteven4 Date: Sat, 4 Nov 2017 14:48:53 -0600 Subject: [PATCH] fix mangled argument handling on none utf-8 unix machines. --- main.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.cc b/main.cc index 222b9cf20..3ab7ffb88 100644 --- a/main.cc +++ b/main.cc @@ -242,9 +242,8 @@ main(int argc, char* argv[]) // For example, this will get the QTextCodec::codecForLocale set // correctly. QCoreApplication app(argc, argv); -#ifdef __WIN32__ // Use QCoreApplication::arguments() to process the command line and replace - // argv[] strings with UTF-8 versions; this is needed on Windows only. + // argv[] strings with UTF-8 versions. QVector qargv; { QStringList qargs = QCoreApplication::arguments(); @@ -255,7 +254,6 @@ main(int argc, char* argv[]) argv[i] = qargv[i].data(); } } -#endif (void) new gpsbabel::UsAsciiCodec(); /* make sure a US-ASCII codec is available */ -- 2.30.2